From: Nick Jenkins Date: Wed, 25 Oct 2006 08:31:44 +0000 (+0000) Subject: Bug 7369 - Allow "Show Changes" without requiring edit token; Patch by Werdna. X-Git-Tag: 1.31.0-rc.0~55381 X-Git-Url: http://git.cyclocoop.org/%28%5B%5E/404?a=commitdiff_plain;h=14b42a37d3849c584e9988164d6bc96430dff4b1;p=lhc%2Fweb%2Fwiklou.git Bug 7369 - Allow "Show Changes" without requiring edit token; Patch by Werdna. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 5beb3a5519..b1ec47e4e4 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -85,6 +85,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 7663) Include language variant switcher links on Nostalgia skin * (bug 6531) Fix PHP fatal error on installation page with bad username input. * (bug 6977) Remove 404 link for autogenerated database documentation. +* (bug 7369) Allow "Show Changes" without requiring edit token. == Languages updated == diff --git a/includes/EditPage.php b/includes/EditPage.php index ce224e5269..1dad05ef1c 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -439,6 +439,9 @@ class EditPage { # The unmarked state will be assumed to be a save, # if the form seems otherwise complete. wfDebug( "$fname: Passed token check.\n" ); + } else if ( $this->diff ) { + # Failed token check, but only requested "Show Changes". + wfDebug( "$fname: Failed token check; Show Changes requested.\n" ); } else { # Page might be a hack attempt posted from # an external site. Preview instead of saving.